package com.lee.www.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * 权限表
 */

@Data
@AllArgsConstructor
@NoArgsConstructor
@TableName("permission")
public class Permission {

    @TableId
    @TableField(value = "id")
    private Long id;
    // 权限名称
    @TableField(value = "permission_name")
    private String permissionName;
    // 权限描述
    @TableField(value = "permission_desc")
    private String permissionDesc;
    // 权限等级
    @TableField(value = "level")
    private Integer level;
    // 权限id的父节点
    @TableField(value = "pid")
    private Long pid;
    // 请求资源
    @TableField(value = "uri_path")
    private String uriPath;
}
